package com.itheima.document.enums;

import lombok.Getter;

/**
 * 文档读写权限枚举类型
 */

@Getter
public enum  DocumentEnum {

    ALL_READ(0, "公共读"),
    ALL_READ_WRITE(1, "公共读写"),
    PRIVATE_READ_WRITE(2, "私有"),
    ;

    DocumentEnum(Integer authority, String desc) {
        this.authority = authority;
        this.desc = desc;
    }

    private Integer authority;
    private String desc;

}
